<?xml version="1.0" encoding="UTF-8"?>
<!--

    Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.

    This program and the accompanying materials are made available under the
    terms of the Eclipse Public License v. 2.0, which is available at
    http://www.eclipse.org/legal/epl-2.0.

    This Source Code may also be made available under the following Secondary
    Licenses when the conditions for such availability set forth in the
    Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
    version 2 with the GNU Classpath Exception, which is available at
    https://www.gnu.org/software/classpath/license.html.

    SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

-->

<!DOCTYPE html
      PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
<head>
    <title>implicit facet test</title>
</head>
<body>
<h:form prependId="false" id="form">

  <f:facet id="facet01" name="facet01">

    <h:outputText id="output01" value="output01" />
    <h:outputText id="output02" value="output02" />
    <h:outputText id="output03" value="output03" />

  </f:facet>

  <f:facet id="facet02" name="facet02">

    <h:panelGroup id="panelGroup01">

      <h:outputText id="output07" value="output07" />
      <h:outputText id="output08" value="output08" />
      <h:outputText id="output09" value="output09" />

    </h:panelGroup>

  </f:facet>

<p>
 Implicit facet 01 id: <h:outputText id="facet01Output01"
 value="#{component.parent.facets['facet01'].id}" />.
 Child 01 of facet 01 id: <h:outputText id="facet01Output02"
 value="#{component.parent.facets['facet01'].children['0'].id}" />.
 Child 02 of facet 01 id: <h:outputText id="facet01Output03"
 value="#{component.parent.facets['facet01'].children['1'].id}" />.
 Child 03 of facet 01 id: <h:outputText id="facet01Output04"
 value="#{component.parent.facets['facet01'].children['2'].id}" />.

</p>

<p>
 Implicit facet 01 id: <h:outputText id="facet02Output01"
 value="#{component.parent.facets['facet02'].id}" />.
 Child 01 of facet 01 id: <h:outputText id="facet02Output02"
 value="#{component.parent.facets['facet02'].children['0'].id}" />.
 Child 02 of facet 01 id: <h:outputText id="facet02Output03"
 value="#{component.parent.facets['facet02'].children['1'].id}" />.
 Child 03 of facet 01 id: <h:outputText id="facet02Output04"
 value="#{component.parent.facets['facet02'].children['2'].id}" />.

</p>

<h:commandButton id="command" value="Click Me"/>  
</h:form>
<h:messages id="messages"/>
</body>
</html>
